/*
 * Buffer.h
 *
 *  Created on: 2 mars 2012
 *      Author: Jeff
 */

#ifndef BUFFER_H_
#define BUFFER_H_

#include "config.h"

class Buffer {
public:
	byte bufferSpace[SHELL_BUFFER_MAX];
	int bufferIndex;

#define SHELL_BUFFERSTATUS_VOID			0
#define SHELL_BUFFERSTATUS_MAXREACHED 	1
#define SHELL_BUFFERSTATUS_FILLED 		2
#define SHELL_BUFFERSTATUS_NOAVAIL	 	3
	int bufferStatus;

	Buffer ();
	void zero();
	void read();
	void display();
};

#endif /* BUFFER_H_ */
